unit uFrm_dialog_select_item;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, XPMan;

type
  TfrmDlgSelItem = class(TForm)
    xpmnfst1: TXPManifest;
    btn_ok: TButton;
    btn_cancel: TButton;
    lst1: TListBox;
    procedure FormCreate(Sender: TObject);
    procedure btn_cancelClick(Sender: TObject);
    procedure btn_okClick(Sender: TObject);
    procedure lst1DblClick(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
    modal_result : Boolean;
  end;

var
  frmDlgSelItem: TfrmDlgSelItem;

implementation

{$R *.dfm}

procedure TfrmDlgSelItem.FormCreate(Sender: TObject);
begin
  modal_result := False;
end;

procedure TfrmDlgSelItem.btn_cancelClick(Sender: TObject);
begin
  modal_result := false;
  CLose();
end;

procedure TfrmDlgSelItem.btn_okClick(Sender: TObject);
begin
  modal_result := true;
  CLose();
end;

procedure TfrmDlgSelItem.lst1DblClick(Sender: TObject);
begin
  modal_result := true;
  CLose();
end;

end.
